// 定义模型
module.exports = function (sequelize, DataTypes) {
    return sequelize.define(
        'user', {
            id: {
                type: DataTypes.INTEGER,
                primaryKey: true,
                autoIncrement: true,
                comment: '主键'
            },
            account: {
                type: DataTypes.STRING,
                field: 'account',
                comment: '账号'
            },
            password: {
                type: DataTypes.STRING,
                field: 'password',
                comment: '密码'
            },
            user_name: {
                type: DataTypes.STRING,
                field: 'user_name',
                comment: '用户名'
            },
            createTime: {
                type: DataTypes.DATE,
                field: 'createTime',
                comment: '创建时间'
            },
            solt: {
                type: DataTypes.STRING,
                field: 'solt'
            },
            address: {
                type: DataTypes.STRING,
                field: 'address',
                comment: '地址'
            },
            mobile: {
                type: DataTypes.STRING,
                field: 'mobile',
                comment: '手机'
            }
        }
    );
}